import { createApp } from 'vue'
import Element from 'element-plus'
import 'element-plus/dist/index.css'
import Dialog from '@/components/container/dialog/index.vue'

export function DialogService(schema) {
  const el = document.createElement('div')
  document.body.appendChild(el)
  const app = createApp(Dialog, { schema })
  app.use(Element)
  const ins = app.mount(el)
  ins.show()
}
